package eiisan.config.aop.log.annotation;

import javax.validation.constraints.Positive;
import java.lang.annotation.*;

/**
 * 方法耗时监控注解
 */
@Documented
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface DurationLog {

	/**
	 * 警告触发阈值,默认3000毫秒
	 */
	@Positive
	long threshold() default 3000;

}
